package cn.iocoder.yudao.module.crm.controller.admin.course.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 课程分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CoursePageReqVO extends PageParam {

    @Schema(description = "父id", example = "7996")
    private Long parentId;

    @Schema(description = "课程名称", example = "芋艿")
    private String name;

    @Schema(description = "课程类型", example = "2")
    private String type;

    @Schema(description = "课程展现类型", example = "2")
    private String showType;

    @Schema(description = "所属目录", example = "16305")
    private Long subjectId;

    @Schema(description = "老师")
    private Set<Long> teacherIds;

    @Schema(description = "课程课时")
    private Integer classHour;

    @Schema(description = "标识0:课程，1:章节")
    private Integer flag;

    @Schema(description = "是否已禁用。{ 0：正常；1：禁用；}")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "套餐id - 查询已经关联套餐的课程", example = "")
    private Long coursePackageId;

    @Schema(description = "已经关联套餐的课程Ids", example = "")
    private Set<Long> inCourseIds;

    @Schema(description = "套餐id - 查询没有关联套餐的课程", example = "")
    private Long notInCoursePackageId;

    @Schema(description = "没有关联套餐的课程Ids", example = "")
    private Set<Long> notInCourseIds;

}